package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.union.huaben.UnionHuaBenPatrons;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_union_hua_ben_attack", desc = "商会话本打怪日志", autoSave = true, uploadCk = true, isCross = true)
public class LogUnionHuaBenAttack extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "商会", isIndex = true)
    private String unionUid;

    @FieldTypeAnnotation(desc = "周id")
    private int weekId;

    @FieldTypeAnnotation(desc = "玩家ID")
    private long userId;

    @FieldTypeAnnotation(desc = "难度")
    private int degree;

    @FieldTypeAnnotation(desc = "关卡")
    private int level;

    @FieldTypeAnnotation(desc = "波次")
    private int wave;

    @FieldTypeAnnotation(desc = "怪物id")
    private int targetId;

    @FieldTypeAnnotation(desc = "出战门客")
    private List<UnionHuaBenPatrons> patronsList;

    @FieldTypeAnnotation(desc = "伤害")
    private String damage;

    @FieldTypeAnnotation(desc = "攻击前血量")
    private String beforeBlood;

    @FieldTypeAnnotation(desc = "剩余血量")
    private String blood;

    @FieldTypeAnnotation(desc = "奖励")
    private String reward;

    @FieldTypeAnnotation(desc = "奖励-宝箱")
    private String boxReward;

    public LogUnionHuaBenAttack(String unionUid, int weekId, long userId, int degree, int level, int wave, int targetId, List<UnionHuaBenPatrons> patronsList, String damage,
                                String beforeBlood, String blood, String reward, String boxReward) {
        this.unionUid = unionUid;
        this.weekId = weekId;
        this.userId = userId;
        this.degree = degree;
        this.level = level;
        this.wave = wave;
        this.targetId = targetId;
        this.patronsList = patronsList;
        this.damage = damage;
        this.beforeBlood = beforeBlood;
        this.blood = blood;
        this.reward = reward;
        this.boxReward = boxReward;
    }


    @Override
    public long getUserId() {
        return userId;
    }
}
